#include "stdafx.h"
#include "general.h"


void FormatSpecialFolderPath(int nFolder, const LPTSTR path, LPTSTR result)
{	
	TCHAR FolderPath[MAX_PATH];
	SHGetSpecialFolderPath(0, FolderPath, nFolder, 1);
	if (FolderPath[wcslen(FolderPath) - 1] == '\\')
	{
		wsprintf(result, L"%s%s", FolderPath, path); 
	}
	else
	{
		wsprintf(result, L"%s\\%s", FolderPath, path); 
	}
}